<?php

namespace App\Exceptions;

use Exception;

class ApiException extends Exception
{
    //
    private $statusCode;

    public function __construct($msg, $code = 0)
    {
        $this->statusCode = 422;
        parent::__construct($msg, $code);
    }

    public function getStatusCode()
    {
        return $this->statusCode;
    }

}
